package account.docent.controller;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JMenuItem;

import dao.account.DataLayerAccount;
import tools.old.files.MainView;
import tools.old.files.TeacherFrame;
import mededelingen.view.MededelingenView;
import mededelingen.view.KnoppenView;
import account.docent.view.DocentAccountView;
import account.docent.view.DocentView;
import account.model.Account;
import account.model.SubTeam;
import account.student.view.StudentAccountView;

public class DocentController implements ActionListener {

	public DocentController(JFrame frame) {}
	public DocentController(JButton button) {}
	public DocentController(JMenuItem menu) {}

	@Override
	public void actionPerformed(ActionEvent e) {

		//app afsluiten
		if ("Afmelden".equals(e.getActionCommand())) {
			System.exit(0);
		}
		
		//open mededelingenscherm
		if ("MededelingBewerken".equals(e.getActionCommand())) {
			MededelingenView.getInstance().setVisible(true);
		}
		
		//open hulpvraagknoppenscherm
		if ("Hulpvraagknopjes".equals(e.getActionCommand())) {
			KnoppenView.getInstance().setVisible(true);
		}

		//open account settings
		if ("AccountOpties".equals(e.getActionCommand())) {
			DocentAccountView.getInstance().setVisible(true);
		}		
	}
}